﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace APACWP8.View
{
    public partial class PanoramaPage10 : PhoneApplicationPage
    {
        public PanoramaPage10()
        {
            InitializeComponent();
            //web.IsScriptEnabled = true;
            //web.Navigate(new Uri("/Resources/General.html",UriKind.Relative));
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            CheckOrientation(LayoutRoot);
        }
        private void CheckOrientation(Grid content)
        {

            if ((Orientation & PageOrientation.Portrait) == (PageOrientation.Portrait))
            {
                content.Margin = new Thickness(0, 0, 0, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeLeft) == (PageOrientation.LandscapeLeft))
            {
                content.Margin = new Thickness(0, 0, 36, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeRight) == (PageOrientation.LandscapeRight))
            {
                content.Margin = new Thickness(36, 0, 0, 0);
            }
        }
        private async void TextBlock_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://www.microsoftintegrity.com/"));

        }

        private async void TextBlock_Tap_2(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:Buscond@microsoft.com"));

        }

        private async void TextBlock_Tap_3(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:ANTICPT@microsoft.com"));

        }

        private async void TextBlock_Tap_8(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SideAgreements/Pages/EscalationProcess.aspx"));

        }

        private async void TextBlock_Tap_4(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:katharine.bostick@microsoft.com"));

        }

        private async void TextBlock_Tap_5(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:vijayanm@microsoft.com"));

        }

        private async void TextBlock_Tap_7(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:apaccc@microsoft.com"));

        }

        private async void TextBlock_Tap_6(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:jacklynk@microsoft.com"));

        }

        private async void TextBlock_Tap_9(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_10(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/anti-corruption/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_11(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://getbif/"));

        }

        private async void TextBlock_Tap_12(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/POE From End Customers (PS-all value and Non-PS more than $25k).docx"));

        }

        private async void TextBlock_Tap_14(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/COI/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_16(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_15(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://lcaweb/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_18(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/Gift form (non Government) (FY12).docx"));

        }

        private async void TextBlock_Tap_21(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/PROCUR 5 7 Non Revenue Distribution of Microsoft Products.aspx"));

        }

        private async void TextBlock_Tap_22(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/Finance/AccountingPolicies/3Expenses/37Marketing/Pages/Policy 3 7 7 Barter Transactions.aspx"));

        }

        private async void TextBlock_Tap_24(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://privacy/default.aspx"));

        }

        private async void TextBlock_Tap_30(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:Ask3PP@microsoft.com"));

        }

        private async void TextBlock_Tap_29(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://sharepoint/sites/3PPPortal/Shared Documents/Business Process and Requirements/3PP Step-by-step Compliance Checklist.docx"));

        }

        private async void TextBlock_Tap_28(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/SitePages/SCEMergerPage.aspx"));

        }

        private async void TextBlock_Tap_27(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_26(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SideAgreements/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_25(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://www.microsoft.com/about/companyinformation/procurement/toolkit/en/us/default.aspx"));

        }

        private async void TextBlock_Tap_23(object sender, System.Windows.Input.GestureEventArgs e)
        {

            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/PROCUR 5 14 Global Travel Policy.aspx"));

        }

        private async void TextBlock_Tap_20(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/Finance/AccountingPolicies/3Expenses/35OtherExpenses/Pages/Policy 3 5 9 Business Investment Fund.aspx"));

        }

        private async void TextBlock_Tap_19(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/policyexceptions/Pages/Home.aspx"));

        }

        private async void TextBlock_Tap_17(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/MOU/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_13(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/POE From Partners (value $5,000-24,999).docx"));

        }
        private void SettingClick_Click(object sender, EventArgs e)
        {
            App.RootFrame.Navigate(new Uri("/View/SettingPage.xaml", UriKind.Relative));
        }

        private void SearchClick_Click(object sender, EventArgs e)
        {
            App.RootFrame.Navigate(new Uri("/View/SearchPage.xaml", UriKind.Relative));
        }

        private async void TextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/WW Tracking template - APAC.xlsx"));
        }

        private async void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://msmarket/default.aspx"));

        }

        private async void Hyperlink_Click_1(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/teams/nokseeding/SitePages/Home.aspx"));

        }

        private async void Hyperlink_Click_2(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://bpsiis05.redmond.corp.microsoft.com/"));
        }
        private async void TextBlock_Tap_31(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/Marketing Samples (Product Giveaway) Materials/Surface Equipment Loan Agreement Template.docx"));
        }
        private async void TextBlock_Tap_32(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://lcaweb/policies/Gifts/Documents/Template for Microsoft Product Donations to Corporations and Entities.docx"));
        }

        private async void Hyperlink_Click_3(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/Forms/AllItems.aspx?RootFolder=%2Fsmsg%2Fcontrolcompliance%2FSCE%2FReference%20Repository%2FMarketing%20Samples%20%28Product%20Giveaway%29%20Materials&FolderCTID=0x012000636244345FBFE34AA87D213DD186CB3E&View=%7b57728436-580E-484E-92E3-0212F2A2E61B%7d&InitialTabId=Ribbon%2ERead&VisibilityContext=WSSTabPersistence"));

        }

        private async void Hyperlink_Click_4(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/PROCUR 5 7 Non Revenue Distribution of Microsoft Products.aspx"));

        }

        private async void Hyperlink_Click_5(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEPOLICIES/Privacy/Privacy/Pages/Corporate Privacy Policy.aspx"));

        }

        private async void Hyperlink_Click_6(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://www.microsoft.com/about/companyinformation/procurement/toolkit/en/us/default.aspx"));

        }
        private async void Hyperlink_Click_7(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://privacy/default.aspx"));

        }

        private async void Hyperlink_Click_8(object sender, RoutedEventArgs e)
        {

        }

        private async void Hyperlink_Click_9(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/POE From End Customers (PS-all value and Non-PS more than $25k).docx"));

        }

        private async void Hyperlink_Click_10(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://getbif/"));

        }

        private async void Hyperlink_Click_11(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/Finance/AccountingPolicies/3Expenses/35OtherExpenses/Pages/Policy 3 5 9 Business Investment Fund.aspx"));
        }

        private async void Hyperlink_Click_12(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/SMSG/VolumeLicensingPricingPolicies/Agreements/Pages/WWLP 1 8 Non Std Sales and Distrib Agreements Memoranda of Understanding and Letters of Intent.aspx"));

        }

        private async void Hyperlink_Click_13(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/MOU/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_14(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/SMSG/VolumeLicensingPricingPolicies/Empowerment/Pages/WWLP 2 1 Field Empowerment.aspx"));

        }

        private async void Hyperlink_Click_15(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/SMSG/SMSGIntegrity/FinancialIntegrity/Pages/Side Agreements.aspx"));

        }

        private async void Hyperlink_Click_16(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SideAgreements/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_17(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEPOLICIES/Conflicts/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_18(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/COI/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_19(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/SMSG/SMSGIntegrity/FinancialIntegrity/Pages/Financial Integrity Policy.aspx"));

        }

        private async void Hyperlink_Click_20(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/Pages/default.aspx"));
        }

        private async void Hyperlink_Click_21(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/SitePages/WorkBookView.aspx"));

        }

        private async void Hyperlink_Click_22(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/SitePages/CNCMCheckList.aspx?LID=Asia%20Pacific%20HQ&Classification=Large%20-%20Medium%20Subs"));
        }

        private async void Hyperlink_Click23(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_24(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://lcaweb/Pages/default.aspx"));

        }

        private async void Hyperlink_Click_25(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/policyexceptions/Pages/Home.aspx"));

        }

        private async void Hyperlink_Click_26(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/Finance/AccountingPolicies/3Expenses/35OtherExpenses/Pages/Policy 3 5 9 Business Investment Fund.aspx"));

        }

        private async void Hyperlink_Click_27(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/PROCUR 5 14 Global Travel Policy.aspx"));

        }

        private async void Hyperlink_Click_28(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/anti-corruption/Pages/default.aspx"));

        }

        private async void okk(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEPOLICIES/AntiCorruption/Pages/default.aspx"));

        }

        private async void oo(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/anti-corruption/Pages/countryschedule.aspx"));

        }

        private async void ooo(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEPOLICIES/GiftsHospitalityAndTravel/Pages/default.aspx"));

        }

        private async void oooo(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/APAC Non-Government Gift Approval.docx"));

        }

        private async void a(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/Pages/default.aspx"));

        }

        private async void aa(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://myorder/Home.aspx"));

        }

        private async void aaa(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://sharepoint/sites/smartbuy/SitePages/Home.aspx"));

        }

        private async void aaaa(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/PROCUR 5 9 3rd Party Payments.aspx"));

        }

        private async void aaaaa(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:Ask3PP@microsoft.com"));

        }

        private async void ass(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://sharepoint/sites/3PPPortal/Shared Documents/Business Process and Requirements/3PP Step-by-step Compliance Checklist.docx"));

        }

        private async void ss(object sender, RoutedEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/AREA/APAC/APACRegion/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_33(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/Giveaway Template.oft"));
        }
    }
}